-module(view_mgr).
-include("rec_dec.hrl").
-export([get/1]).

get({vendor,edit,L}) ->
	Vendor = 
		case lists:keyfind("vendor_id",1,L) of
		{"vendor_id",V} ->
				vendor_service:get(V);
		false ->
				#vendor_rec{id=list_to_binary("")}
		end,
	{ehtml,vendor_adapter:toHtml(edit,Vendor)}.